package com.mars.basic.client;

import com.mars.basic.allmain.dto.PermissionDto;
import com.mars.basic.allmain.po.Permission;
import org.springframework.cloud.openfeign.SpringQueryMap;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.List;


@RequestMapping(value = "/permission")
public interface IPermissionClient {
    @RequestMapping(value = "/add")
    Permission addPermission(@SpringQueryMap PermissionDto dto);

    @RequestMapping(value = "/list")
    List<PermissionDto> getList();
}
